package org.redis.cluster.util;

import java.net.InetAddress;

public class NetUtil {
	
	/**
	 * 返回本机地址
	 * @return
	 */
	public static String getLocalHost() {
		try {
			return InetAddress.getLocalHost().getHostAddress();
		}
		catch(Exception e) {
			throw new RuntimeException(e);
		}
	}
}